home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
dev
/
basic
/
CIAs_in_Blitz.readme
< prev
next >
Wrap
Text File
|
1999-07-01
|
1KB
|
33 lines
Short: Example of using CIA interrupts in Blitz
Author: anton@ww.co.nz (Anton Reinauer)
Uploader: anton@ww.co.nz (Anton Reinauer)
Version: 1.0
Type: dev/basic
Requires: Blitz Basic2
The Amiga has two CIA (complex interface adaptor) chips- CIA-A, and CIA-B.
This code can access either of the 2 general purpose Timers on these chips.
These timers can execute a section of code a set number of times a second
(you can change how many times a second they fire), independant of your
main code. This code is based on the CIA_Interval.c code on the developer
CD. You can set up a variable from your main program to be updated by the
Timer, or maybe set the interrupt to signal your main task after a set
period of time.
The CIA resource is a system legal way of allocating the timers, so your
program can check if a timer is being used by another task, if it isn't
then it can allocate it for itself.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
8038 2254 71.9% 13-Jun-99 20:57:18 +Cia-Find_Owners.asc
6967 2158 69.0% 13-Jun-99 20:57:36 +Cia-OS_Start.asc
7096 2157 69.6% 13-Jun-99 21:09:08 +Cia.asc
5264 2282 56.6% 13-Jun-99 21:33:00 +Cia.readme
-------- ------- ----- --------- --------
27365 8851 67.6% 13-Jun-99 19:05:40 4 files